package com.alice.chain.vo;

import lombok.Data;

/**
 * @Author: wujing
 * @Date: 2024/6/26 9:42
 * @Description: TODO
 **/
@Data
public class Result {
    String code;
    String message;


    public Result(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static Result success() {
        return new Result("1","成功");
    }
    public static Result failure() {
        return new Result("0","失败");
    }
    public static boolean isSuccess() {
        return true;
    }
}
